package cn.gong.jizhang.ui;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import cn.gong.jizhang.datacenter.data.RecordData;
import cn.gong.jizhang.enumparams.DbTaskType;
import cn.gong.jizhang.ui.base.BaseAct;

public class RecordAct extends BaseAct {
	
	private int page=0;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setLayout(R.layout.record_page);
		new RecordData().getRecodList(page,this);
	}

	@Override
	public void onClick(View v) {
		switch (v.getId()) {
		case R.id.record_page_ib_add:
			openAddRecordAct();
			break;
		}
	}

	private void openAddRecordAct() {
		Intent intent = new Intent(this, AddRecordAct.class);
		openActForNew(intent);
	}

	@Override
	protected void setClickListener() {
		setClick(R.id.record_page_ib_add);
	}

	@Override
	protected void clearDate() {
	}

	@Override
	protected void recoveryDate() {
	}

	@Override
	public void dbTaskFinish(DbTaskType tasktype, Object data) {
	}

}
